/**
 *
 */
package cn.jhz.learn.blog.config;

import cn.jhz.learn.blog.config.datasource.AccountDataConfig;
import cn.jhz.learn.blog.config.datasource.BlogDataConfig;
import org.springframework.context.annotation.*;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author asus
 *
 */
@ComponentScan(
        basePackages = {
                "cn.jhz.learn.blog.dao",
                "cn.jhz.learn.blog.util",
                "cn.jhz.learn.blog.component.shiro.realm"
        },
        excludeFilters = {@Filter(type =
        FilterType.ANNOTATION, value = {RestController.class, ControllerAdvice.class, Service.class})})
@Import(value = {AccountDataConfig.class, BlogDataConfig.class})
@Configuration
@EnableTransactionManagement
@EnableAspectJAutoProxy(proxyTargetClass = true)
public class RootConfig {

}
